//
//  BozhuHeader.m
//  Ting
//
//  Created by 安静的美男子 on 14/11/14.
//  Copyright (c) 2014年 安静的美男子. All rights reserved.
//

#import "BoZhuSection.h"

@implementation BoZhuSection
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
    
//    _leftBt = [UIButton buttonWithType:UIButtonTypeCustom];
//    _leftBt.frame = CGRectMake(5, 0, 100, 30);
//        [_leftBt setTitle:@"简介" forState:UIControlStateNormal];
//        [_leftBt setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
//        
//    [self addSubview:_leftBt];
//        
//        
//        
//    _centerBt = [UIButton buttonWithType:UIButtonTypeCustom];
//    _centerBt.frame = CGRectMake(110, 0, 100, 30);
//        [_centerBt setTitle:@"排序" forState:UIControlStateNormal];
//        [_centerBt setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
//        
//
//    [self addSubview:_centerBt];
//    _rightBt = [UIButton buttonWithType:UIButtonTypeCustom];
//    _rightBt.frame = CGRectMake(215, 0, 100, 30);
//   
//        [_rightBt setTitle:@"更多专辑" forState:UIControlStateNormal];
//        [_rightBt setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
//        

//    [self addSubview:_rightBt];
//        _Headerview.backgroundColor = [UIColor blackColor];
//        self.backgroundColor = [UIColor orangeColor];
        UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 320, 40)];
        view.backgroundColor = [UIColor colorWithRed:0.97 green:0.97 blue:0.97 alpha:1];
        UISegmentedControl *seg = [[UISegmentedControl alloc]initWithItems:@[@"简介",@"专辑",@"其他"]];
        seg.selectedSegmentIndex = 1;
        
              seg.frame = CGRectMake(5, 5, 310, 30);
        seg.tintColor = [UIColor orangeColor];
        [view addSubview:seg];
        
        [self addSubview:view];
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
